﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    public class WarDetailsUserRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 25;

        public string UserName { get; set; }
        public string UserID { get; set; }
        public int LocationIndex { get; set; }
        public int TotalScore { get; set; }
        public int[] Cards { get; set; }
        public string CardType { get; set; }

        public void decode(Input _in)
        {
            UserName = _in.readString();
            UserID = _in.readString();
            LocationIndex = _in.readInt();
            TotalScore = _in.readInt();
            Cards = _in.readIntArray();
            CardType = _in.readString();
        }

        public void encode(Output _out)
        {
        }


        public int getMessageId()
        {
            return ID;
        }


        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "WarDetailsUserRet [userName=" + UserName + ",UserID=" + LocationIndex + "Cards=" + Cards +
                   "AllCardType= " + CardType + "TotalScore=" + TotalScore + ", ]";
        }
    }
}